package controller.salle
{
	import mx.controls.Alert;
	
	import model.proxy.SalleProxy; 
	import model.Salle; 
	import org.puremvc.as3.interfaces.INotification; 
	import org.puremvc.as3.patterns.command.SimpleCommand;
	 
	public class ValiderAjoutSalleCommand extends SimpleCommand 
	{ 
		//public static const NAME : String = 'VALIDER_AJOUT_SALLE_COMMAND';
		 
		/** 
		 * Constructor 
		 */ 
		public function ValiderAjoutSalleCommand() 
		{ 
			super();
		} 
		
		/** 
		 * Initialize all commands/controllers of the application 
		 */
		override public function execute(note : INotification) : void 
		{ 
			var salle : Salle = note.getBody() as Salle; 
			var salleProxy:SalleProxy = facade.retrieveProxy(SalleProxy.NAME) as SalleProxy; 
			salleProxy.validerAjoutSalle(salle);
		} 
	}
}